<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    6666666666
</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
    var dataArr = new Array();

    for(var i = 0; i < 10; i++){
        dataArr.push(i);
    }

    $.ajax({
        url : "test/test",
        type: "post",
        async : false,
        dataType : "json",
        data : { "arr" : dataArr },
        success : function(data) {
            console.log(data);
        }
    })
</script>
</html>